﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace AllServer.Core.Entity;
    ///<summary>
    ///F码使用记录，只有自定义F码，赠送时长会加进来
    ///</summary>
    [SugarTable("TFreeCodeUse")]
    public partial class TFreeCodeUse
    {
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="Id")]
        public int Id {get;set;}
        /// <summary>
        /// F码
        /// </summary>           
        [SugarColumn(ColumnName="FreeCode")]
        public string FreeCode {get;set;}
        /// <summary>
        /// 用户码
        /// </summary>           
        [SugarColumn(ColumnName="UserCode")]
        public string UserCode {get;set;}
        /// <summary>
        /// 产品id
        /// </summary>           
        [SugarColumn(ColumnName="ProductId")]
        public int ProductId {get;set;}
        /// <summary>
        /// 创建时间
        /// </summary>           
        [SugarColumn(ColumnName="CreateTime")]
        public DateTime CreateTime {get;set;}
        /// <summary>
        /// 开始时间
        /// </summary>           
        [SugarColumn(ColumnName="BeginTime")]
        public DateTime BeginTime {get;set;}
        /// <summary>
        /// 结束时间
        /// </summary>           
        [SugarColumn(ColumnName="EndTime")]
        public DateTime EndTime {get;set;}
        /// <summary>
        /// 是否启用 1启用
        /// </summary>           
        [SugarColumn(ColumnName="IsEnable")]
        public int IsEnable {get;set;}
        /// <summary>
        /// 使用F码前会员等级
        /// </summary>           
        [SugarColumn(ColumnName="LastVipType")]
        public int LastVipType {get;set;}
        /// <summary>
        /// 0非G码会员 1是普通会员G码，2是超级会员G码，3是2小时G码会员
        /// </summary>           
        [SugarColumn(ColumnName="CodeType")]
        public int CodeType {get;set;}
        /// <summary>
        /// 迁移主键
        /// </summary>           
        [SugarColumn(ColumnName="RawId")]
        public int? RawId {get;set;}
        /// <summary>
        /// 最后更新时间，用于同于更新判断
        /// </summary>           
        [SugarColumn(ColumnName="SyncUpdateTime")]
        public DateTime? SyncUpdateTime {get;set;}
    }
